# -*- coding: utf-8 -*-
# 函数定义与使用
def have_student(student):
    all_students = ['xubobo', 'zhangyan', "yangxin", "huapeng"]
    if student in all_students:
        return True
    else:
        return False

while True:
    student = raw_input("please give me the name of a student('q' to quit):")
    if student == 'q':
        print("Goodbye!")
        break
    if have_student(student):
        print("Yes, that student is enrolled in the class")
    else:
        print("No, that student is not in the class")
